<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			uni.getSystemInfo({
				success: function(e) {
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 48;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 44;
					};
					if (e.model.indexOf('iPhone X') != -1 || e.model.indexOf('unknown<iPhone') != -1 || (e.screenHeight == 812 && e.platform == 'ios')) {
					      console.log('存在底部安全区域')
					      Vue.prototype.isIPhoneX = true // 设置全局变量，表示存在底部安全区域
					    } else {
					      console.log('不存在底部安全区域')
					      Vue.prototype.isIPhoneX = false // 设置全局变量，表示不存在底部安全区域
					    }
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uni_modules/uview-ui/index.scss";
	
	@import url('@/static/css/iconfont.css');
	@import "@/static/css/mj_common.scss";
	/*每个页面公共css */
</style>

